package byx.container.annotation.ConditionalTest.a;

import byx.container.annotation.annotation.Conditional;
import byx.container.annotation.annotation.Init;
import byx.container.core.Container;
import java.util.function.Predicate;

@Conditional(MyPredicate2.class)
public class C {
    private B b;

    @Init
    public void setB(B b) {
        this.b = b;
    }

    public B getB() {
        return b;
    }
}

class MyPredicate2 implements Predicate<Container> {
    @Override
    public boolean test(Container container) {
        return container.exist(B.class);
    }
}
